package com.zhentao.controller;

import com.zhentao.domain.SysBatteryType;
import com.zhentao.domain.vo.Result;
import com.zhentao.service.SysBatteryTypeService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/batteryType")
@Tag(name = "电池类型管理")
public class BatteryTypeController {
    @Autowired
    private SysBatteryTypeService sysBatteryTypeService;

    @GetMapping("/getBatteryTypeList")
    @Operation(summary = "获取电池类型列表")
    public Result<List<SysBatteryType>> getBatteryTypeList(){
        return sysBatteryTypeService.getBatteryTypeList();
    }
}
